<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC 	"-//W3C//DTD XHTML 1.0 Transitional//EN"
						"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core">
	<f:view locale="#{facesContext.externalContext.request.locale}">
	<f:loadBundle basename="texte.Info" var="vhtexte" />
	<f:event type="javax.faces.event.PreRenderComponentEvent" listener="#{loginBean.preInit}" />
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="stylesheet" type="text/css" href="#{resource['css:dokument.css']}" />
		<title><h:outputText value="#{vhtexte.loginTitel}"/></title>
	</h:head>
	<h:body>
		<h:outputStylesheet name="fonts.css"/>
		
		<h:form id="loginForm">
		
		<h:outputText value="#{vhtexte.welcome}" styleClass='headline' /><br /><br />
		<h:outputText value="#{vhtexte.login}" styleClass='subhead' />
		<p>
		<h:panelGrid columns="2" border="0" cellpadding="2">
			
			Nickname: 
			<h:panelGroup>
				<h:inputText id="nickname" maxlength="15" size="15"
						validator="#{loginBean.validateNickname}"
						value="#{loginBean.nickname}" required="true" >
						<f:validateLength 
	                         minimum="3" maximum="20"/>
				 </h:inputText> <h:message for="nickname" style="color: red"/>
			</h:panelGroup>
			<h:panelGroup>
				<h:outputText value="#{vhtexte.passwort}"/>: 
			</h:panelGroup>
			<h:panelGroup>
			<h:inputSecret id="password" maxlength="15" size="15"
						validator="#{loginBean.validatePassword}"
						value="#{loginBean.password}" required="true" >
						<f:validateLength 
	                         minimum="3" maximum="20"/>
				</h:inputSecret> <h:message for="password" style="color: red"/>
			</h:panelGroup>
			<h:commandButton 	styleClass="senden"
								action="#{loginBean.login}"
								value="#{vhtexte.loginBtn}" >
			</h:commandButton>
		</h:panelGrid>
		<br />
		<p>
		<b>- <h:outputLink value="register.xhtml">
			<h:outputText value="#{vhtexte.registrierenTitel}"/>
		</h:outputLink></b>
		</p>
		</p>
		</h:form>
	</h:body>
	</f:view>
</html>
